<div class="sidebar-nav">
	<ul>  
<?php
$page = $session->get ( 'PAGE' );
$menuStrList = explode ( ",", $page );

$pageName = "";
$groupName = "";
foreach ( $menuStrList as $menuStr ) {
	$menuInfoArray = explode ( "^", $menuStr );
	$gropuInfoArray = explode ( "#", $menuInfoArray [1] );
	

	echo "<li><a href='#' data-target='.$gropuInfoArray[0]' class='nav-header collapsed' data-toggle='collapse'><i class='fa fa-fw $gropuInfoArray[2]'></i>$gropuInfoArray[1] <i class='fa fa-collapse'></i></a></li>";
	if ($page_groupId == $gropuInfoArray [0]) {
		$groupName = $gropuInfoArray [1];
		echo "<li><ul class='$gropuInfoArray[0] nav nav-list collapse in'>";
	} else {
		echo "<li><ul class='$gropuInfoArray[0] nav nav-list collapse'>";
	}
	$pageListArray = explode ( "@", $menuInfoArray [0] );
	foreach ( $pageListArray as $pageListArray ) {
		$pageInfoArray = explode ( "#", $pageListArray );
		if ($page_pageId == $pageInfoArray [0]) {
			$pageName = $pageInfoArray [1];
			echo " <li class='active'><a href='$pageInfoArray[2]'><span class='fa fa-caret-right'></span> $pageInfoArray[1]</a></li>";
		} else {
			echo " <li><a href='$pageInfoArray[2]'><span class='fa fa-caret-right'></span> $pageInfoArray[1]</a></li>";
		}
	}
	echo "</ul></li>";
}
echo "</ul></div>";

if ($pageName == "") {
	$pageName = $page_pageId;
}

echo " <div class='content'>
        <div class='header'>
            <h1 class='page-title'>$pageName</h1>
                    <ul class='breadcrumb'>
            <li><a href='index.php'>主页</a> </li>
            <li class='active'>$pageName</li>
        </ul>
        </div>";
?>  


   